package rhc.taskSchedule.commander;

import rhc.discribute.node.commander.Commander;
import rhc.taskSchedule.taskSchedule.task.TaskExecuteManage;
import rhc.taskSchedule.taskSignalCall.NoticeCustom;


/**分布式任务调度控制器
 * @author rhc
 *
 */
public class TaskScheduleCommander {

	private TaskScheduleCommanderExecute taskScheduleCommanderExecute;
	
	public TaskScheduleCommander(Commander distributeNodeCommander) throws Exception{
		taskScheduleCommanderExecute=new TaskScheduleCommanderExecute(this,distributeNodeCommander);
	}
	
	public void registerNoticeCustom(String taskTypeName,NoticeCustom noticeCustom) throws Exception{
		TaskExecuteManage taskExecuteManage=taskScheduleCommanderExecute.getTaskExecuteManage();
		taskExecuteManage.registerNoticeCustom(taskTypeName,noticeCustom);
	}

	public TaskScheduleCommanderExecute getTaskScheduleCommanderExecute() {
		return taskScheduleCommanderExecute;
	}

	public void setTaskScheduleCommanderExecute(TaskScheduleCommanderExecute taskScheduleCommanderExecute) {
		this.taskScheduleCommanderExecute = taskScheduleCommanderExecute;
	}
	
}
